package com.app.shell.view.mediators {
	import com.app.shell.view.components.ControlPanelView;
	import com.app.shell.view.components.LoggerHolderView;
	import com.app.shell.view.components.WidgetHolderView;
	
	import mx.controls.Alert;
	public class ShellMediator {

		[MessageDispatcher] public var dispatcher:Function;

		/**
		 * Utility function - Universal Alert for any popup messages
		 * 
		 */
/*		public function respondToHandleAlert(note:INotification):void {
			trace("In ShellMediator: responding to handle alert");
			var alertArr:Array = note.getBody() as Array;
			var alertMsg:String = alertArr[0] as String;
			var alertTitle:String = alertArr[1] as String;
			Alert.show(alertMsg, alertTitle);
		}
*/		
		/**
		 * For AIR apps only
		 * Utility function - Universal Status Message Handler
		 */
/*		public function respondToHandleStatusMessage(note:INotification):void {
			trace(NAME+": responding to handle status message");
			if(note.getBody() == null) {
				application.status = "";
				return;
			}
			var statusArr:Array = note.getBody() as Array;
			var statusMsg:String = statusArr[0] as String;
			var statusMsgType:String = statusArr[1] as String;
			application.status = statusMsgType+": "+statusMsg;
		}
*/		
		/**
		 * The [Init] metadata tells Parsley to call the annotated method after 
		 * an instance of this object is created and configured.
		 */ 
		[Init]
		public function init() : void {
			//initialized = true;
		}
		
		
	}
}